import request from '@/utils/request'
// 添加奖励
export function addReward (data) {
  return request({
    url: '/api/v1/reward/add',
    method: 'post',
    data
  })
}
// 获取奖励列表
export function getRewardList (params) {
  return request({
    url: '/api/v1/reward/list',
    method: 'get',
    params
  })
}
// 更新奖励
export function updateReward (data) {
  return request({
    url: '/api/v1/reward/update',
    method: 'put',
    data
  })
}
// 获取用户领取奖励列表
export function getDrawList (params) {
  return request({
    url: '/api/v1/reward/draw_list',
    method: 'get',
    params
  })
}
// 获取活动奖励统计
export function getRewardStatics (params) {
  return request({
    url: '/api/v1/activity/reward/statics',
    method: 'get',
    params
  })
}
